function printDiv(divId)
{ 
  newstr=curBar.all.namedItem(divId);   
  printWin=window.open('print.htm',null,'height=0,width=0,top=0,left=0,status=no,toolbar=no,menubar=no,titlebar=no,location=no');
  window.setTimeout('domPrint()',1200);

/*var oldstr = document.body.innerHTML;
  var newstr=curBar.all.namedItem(divId);   
  document.body.innerHTML =newstr.innerHTML;
  window.print(); 
  document.body.innerHTML = oldstr; 
  return false;*/
}
function domPrint()
{
  printWin.document.body.innerHTML=newstr.innerHTML;
  printWin.print();
  printWin.close();
}